package com.soxing.braindata.service;

/**
 * @Author durango
 * @CreateTime 2021-04-27 14:07:20
 * @Description: 本地缓存服务接口
 */
public interface ILocalCacheService<K, V> {
    /**
     * @param key 缓存key
     * @return 缓存值
     * @Author durango
     * @CreateTime 2021-04-27 14:11:28
     * @Description: 获取缓存数据
     */
    V get(K key);

    /**
     * @param key   缓存key
     * @param value 缓存值
     * @return boolean
     * @Author durango
     * @CreateTime 2021-04-27 14:47:58
     * @Description: 方法描述
     */
    void set(K key, V value);
}
